package com.jiang.action;

import com.jiang.factory.MemberServiceFactory;
import com.jiang.service.IMemberService;
import com.jiang.vo.Member;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class MemberAction extends ActionSupport {

	private Member member;

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public void addMember() {

		IMemberService memberService = MemberServiceFactory.getInstance();
		memberService.save(member);
		
	}

}
